package com.jy.service;


import com.jy.mapper.VehicleMapper;
import com.jy.model.M_Vehicle;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class VehicleService {

    private final VehicleMapper vehicleDao;


    public VehicleService(VehicleMapper vehicleDao) {
        this.vehicleDao = vehicleDao;
    }

    public List<M_Vehicle> queryVehicleByName(String name){
        return vehicleDao.queryVehicleByName(name);
    }

    public List<M_Vehicle> queryVehicleListBySeriesId(String name){
        return vehicleDao.queryVehicleListBySeriesId(name);
    }


}
